projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9951182
)
MIPS: malta: fix IO accessor call
author
Daniel Schwierzeck
<
[email protected]
>
Sat, 9 Jan 2016 16:32:45 +0000
(17:32 +0100)
committer
Daniel Schwierzeck
<
[email protected]
>
Sat, 16 Jan 2016 20:06:46 +0000
(21:06 +0100)
Use void pointer as address argument for readl(). This is required
for the upcoming MIPS asm header file and I/O accessor update.
Signed-off-by: Daniel Schwierzeck <
[email protected]
>
board/imgtec/malta/malta.c
patch
|
blob
|
history
diff --git
a/board/imgtec/malta/malta.c
b/board/imgtec/malta/malta.c
index 79562f79a80c6f93acb134e3a9d342957a3807c8..cae4a21c3d867088fbe894896174d6db13dbd697 100644
(file)
--- a/
board/imgtec/malta/malta.c
+++ b/
board/imgtec/malta/malta.c
@@
-53,8
+53,9
@@
static void malta_lcd_puts(const char *str)
static enum core_card malta_core_card(void)
{
u32 corid, rev;
+ const void *reg = (const void *)CKSEG1ADDR(MALTA_REVISION);
- rev = __raw_readl(
CKSEG1ADDR(MALTA_REVISION)
);
+ rev = __raw_readl(
reg
);
corid = (rev & MALTA_REVISION_CORID_MSK) >> MALTA_REVISION_CORID_SHF;
switch (corid) {